﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Power.Models
{
    /// <summary>
    /// 井信息
    /// </summary>
    public class WellEntity:BaseModel //: NotifyPropertyChangedBase, IsChangedInterface<WellInfo>
    {
        public WellEntity()
        {
        }

        // id
        private int _id;
        public int Id
        {
            get { return _id; }
            set { _id = value; RaisePropertyChanged(); }

        }

        //井号
        private string _no;
        public string No
        {
            get { return _no; }
            set { _no = value; RaisePropertyChanged(); }
        }
        //类型
        private string _type;
        public string Type
        {
            get { return _type; }
            set { _type = value; RaisePropertyChanged(); }
        }
        //功能类型
        private string _funcType;
        public string FuncType
        {
            get { return _funcType; }
            set { _funcType = value; RaisePropertyChanged(); }
        }
        //材质
        private string _mat;
        public string Mat
        {
            get { return _mat; }
            set { _mat = value; RaisePropertyChanged(); }
        }
        //基本问题
        private string _problem;
        public string Problem
        {
            get { return _problem; }
            set { _problem = value; RaisePropertyChanged(); }
        }

        //基本问题
        private string _date;
        public string Date
        {
            get { return _date; }
            set { _date = value; RaisePropertyChanged(); }
        }

        public string IsOnTheRoad { get; set; }
        public bool IsChanged(WellEntity raw)
        {
            return No != raw.No || Type != raw.Type || FuncType != raw.FuncType || Mat != raw.Mat
                || Problem != raw.Problem;
        }
    }
}
